﻿using SimpleSaas.Common.DataBase;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSaas.Entity
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	/// <summary>
	/// department
	/// 用户关联部门表
	/// </summary>
	[SugarTable("sys_user_dept_relation_table")]
	public class SysUserDeptRelationEntity : ComplexEntity<long>
	{
		public SysUserDeptRelationEntity()
		{

		}
		/// <summary>
		/// 用户id
		/// </summary>
		[SugarColumn(ColumnName = "user_id")]
		public long UserId { get; set; }

		/// <summary>
		/// 部门id
		/// </summary>
		[SugarColumn(ColumnName = "dept_id")]
		public long DeptId { get; set; }

		/// <summary>
		/// 是否是部门负责人
		/// </summary>
		[SugarColumn(ColumnName = "owner_flag")]
		public bool OwnerFlag { get; set; }
	}
}
